import request from '@/utils/request'
// 房源列表
export const listItem = (params) => {
  return request.get('/houses', { params })
}
// /area/info 根据城市名称查询该城市信息
export const areaInfo = (value) => request.get('/area/info', { params: { name: value } })

// 租房小组/home/groups
export const getgroups = (id) => request.get('/home/groups', { params: { area: id } })
// /area/hot 热门城市
export const areahot = () => request.get('/area/hot')

// area 获取子级城市列表
export const areaSon = (params) => request.get('/area', { params })

// 地图区域 /area/map
export const areamap = (params) => request.get('/area/map', { params })
// 查询表
export const condition = (params) => request.get('/houses/condition', { params })
// const res = await request.get('/houses/condition', { params })
// 发布房源 /user/houses
export const releaseHouses = (data) => request.get('/user/houses', data)
